OwnerOfScriptObject
Type
operator
Summary
Get the parent object of a script object.
Syntax
the owner of <Object>
Description
Use to get the script object that contains a script object.
note
An error is thrown if the script object does not exist.
Parameters
Name | Type | Description |
---|---|---|
Object | An expression that evaluates to a ScriptObject. |
Examples
public handler MyName() returns String
get property "short name" of my script object
return the result
end handler
public handler OnMouseUp() returns nothing
// Send a message to the widget's parent so it can handle the click
send "widgetClicked" to the owner of my script object with [ MyName() ]
end handler